input and output device drawing